using System;
using UnityEngine;

[Serializable]
public class loadmarket : MonoBehaviour
{
	public GameObject bg;

	public GameObject arrow1;

	public GameObject arrow2;

	public Texture pressed;

	public Texture unpressed;

	public GameObject type;

	public GUITexture gui;

	public AudioClip clip;

	public GameObject parts;

	public GameObject other1;

	public GameObject other2;

	public GameObject other3;

	public GameObject other4;

	public movelimit movelimit;

	public void Update()
	{
		if (UnityEngine.Input.touchCount > 0)
		{
			Touch touch = Input.touches[0];
			if (touch.phase == TouchPhase.Began && GetComponent<GUITexture>().HitTest(touch.position))
			{
				AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
				gui.texture = pressed;
				type.SetActiveRecursively(state: true);
				other1.SetActiveRecursively(state: false);
				other2.SetActiveRecursively(state: false);
				other3.SetActiveRecursively(state: false);
				other4.SetActiveRecursively(state: false);
				arrow1.active = true;
				arrow2.active = true;
				bg.SetActiveRecursively(state: true);
				movelimit.limit();
			}
			if (UnityEngine.Input.touchCount == 0)
			{
				gui.texture = unpressed;
			}
		}
	}

	public void Main()
	{
	}
}
